<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜索结果</title>
<style type="text/css">
.table {
	border-collapse: collapse;
	width: 95%;
	cellspacing: 0;
	cellpadding: 0;
	border: 0px;
}

.tr {
	
}
</style>
</head>
<body>
	<%@include file="../common/head.jsp"%>
	<div class="wrapper">
		<div class="container">

			<c:if test="${!empty list5}">
				<table>
					<tbody>
						<tr>
							<td width="75%" height="25"><strong>突发事件</strong></td>
							<td width="25%" align="center"></td>
						</tr>
					</tbody>
				</table>
				<table>
					<tbody>
						<c:forEach items="${list5}" var="item5">
							<tr>
								<td width="40%" height="25"><li><a
										href="${pageContext.request.contextPath}/newsShow/listEmergencyNewsShowAction?id=${item5.id}">${item5.title }</a></li></td>
								<td width="35%" align="center">${item5.city }</td>
								<td width="25%" align="center">${item5.pubDate }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:if>
			<c:if test="${!empty list1}">
				<table>
					<tbody>
						<tr>
							<td width="75%" height="25"><strong>地震信息</strong></td>
							<td width="25%" align="center"></td>
						</tr>
					</tbody>
				</table>
				<table class="table table-striped table-bordered">
					<thead>
						<tr>
							<th>震级(级)</th>
							<th>发生时间</th>
							<th>纬度(度)</th>
							<th>经度(度)</th>
							<th>深度(千米)</th>
							<th>参考位置</th>
							<th>发布人</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list1}" var="item1">
							<tr>
								<td>${item1.power }</td>
								<td>${item1.ocurrtTime }</td>
								<td>${item1.latitude }</td>
								<td>${item1.longitude }</td>
								<td>${item1.depth }</td>
								<td>${item1.referPosition }</td>
								<td>${item1.userBean.username }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:if>
			<c:if test="${!empty list2}">
				<table>
					<tbody>
						<tr>
							<td width="75%" height="25"><strong>水文信息</strong></td>
							<td width="25%" align="center"></td>
						</tr>
					</tbody>
				</table>
				<table class="table table-striped table-bordered">
					<thead>
						<tr>
							<th>水文站名</th>
							<th>地点</th>
							<th>更新时间</th>
							<th>水位(米)</th>
							<th>水流量(立方米/秒)</th>
							<th>警戒水位(米)</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list2}" var="item2">
							<tr>
								<td>${item2.name }</td>
								<td>${item2.address }</td>
								<td>${item2.refreshTime }</td>
								<td>${item2.waterLevel }</td>
								<td>${item2.waterFlow }</td>
								<td>${item2.warningWaterLevel }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:if>
			<c:if test="${!empty list3}">
				<table>
					<tbody>
						<tr>
							<td width="75%" height="25"><strong>气象信息</strong></td>
							<td width="25%" align="center"></td>
						</tr>
					</tbody>
				</table>
				<table class="table table-striped table-bordered">
					<thead>
						<tr>
							<th>城市</th>
							<th>天气状况</th>
							<th>温度(℃)</th>
							<th>风级(级)</th>
							<th>风向</th>
							<th>污染指数</th>
							<th>更新时间</th>
							<th>作者</th>
						</tr>
					</thead>
					<c:forEach items="${list3}" var="item3">
						<tbody>
							<tr>
								<td>${item3.city }</td>
								<td>${item3.weatherRegime }</td>
								<td>${item3.temprature }</td>
								<td>${item3.windPower }</td>
								<td>${item3.dominatWind }</td>
								<td>${item3.pollutionPower }</td>
								<td>${item3.refreshDate }</td>
								<td>${item3.userBean.username }</td>
							</tr>
					</c:forEach>
					</tbody>
				</table>
			</c:if>
			<c:if test="${!empty list4}">
				<table>
					<tbody>
						<tr>
							<td width="75%" height="25"><strong>应急知识</strong></td>
							<td width="25%" align="center"></td>
						</tr>
					</tbody>
				</table>
				<table>
					<tbody>
						<c:forEach items="${list4}" var="item">
							<tr>
								<td width="75%" height="25"><li><a
										href="${pageContext.request.contextPath}/newsShow/listKnowNewsShowAction?id=${item.id}">${item.title }</a></li></td>
								<td width="25%" align="center">${item.createDate }</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:if>
			<c:if
				test="${ empty list1 && empty list2 && empty list3 && empty list4 &&empty  list5 }">
				<table>
					<tbody>
						<tr>
							<td width="100%" align="center" height="25"><strong>搜索无结果</strong></td>
						</tr>
					</tbody>
				</table>
			</c:if>
			<br class="clear" />
		</div>
	</div>
</body>
</html>